package com.yuan.pay_mall.service;

import com.yuan.pay_mall.form.CartAddForm;
import com.yuan.pay_mall.form.CartUpdateForm;
import com.yuan.pay_mall.vo.CartVo;
import com.yuan.pay_mall.vo.ResponseVo;
//购物车接口
public interface ICartService {
    ResponseVo<CartVo> add(Integer uid,CartAddForm form);
    ResponseVo<CartVo> list(Integer uid);
    ResponseVo<CartVo> update(Integer uid, Integer productId, CartUpdateForm form);
    //ctrl+shift+U  转换大小写
    ResponseVo<CartVo> delete(Integer uid, Integer productId);
    //全选中和全不选
    ResponseVo<CartVo> selectAll(Integer uid);
    ResponseVo<CartVo> unSelectAll(Integer uid);
    //商品数量总和
    ResponseVo<Integer> sum(Integer uid);
}
